package com.learn.project2.controller.admin;


import com.learn.project2.model.vo.admin.dashboard.DashboardVO;
import com.learn.project2.service.admin.dashboard.DashboardService;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
public class DashboardController {

    @Autowired
    DashboardService dashboardService;
    @RequestMapping("dashboard")
    public Result dashboard(){
        DashboardVO dashboardVO = dashboardService.selectDashboard();
        return Result.ok(dashboardVO);
    }
}
